<!DOCTYPE html>
<html>
<head>
<title>班主与下属员工</title>
#parse("sys/header.html")
	<style type="text/css">
		.div-a{ float:left;width:14%;height:auto;}
		.div-b{ float:left;width:84%;height:auto;}
		.center-block {
			display: block;
			margin-left: auto;
			margin-right: auto;
		}
		li:hover {color: #A2007C}	/* 鼠标移动到链接上 */
		li:active {color: #0000FF}	/* 选定的链接 */
	</style>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList" id="form1">
		<div class="div-a">


			<ul class="list-group" id="wxuser">

			</ul>
		</div>
		<div class="div-b">
		<div class="grid-btn">
			#if($shiro.hasPermission("wxuserpersonal:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("wxuserpersonal:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("wxuserpersonal:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			<a class="btn btn-primary" @click="addBatch"><i class="fa fa-plus"></i>&nbsp;批量添加</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default" id="form2">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
													<div class="form-group">
			   	<div class="col-sm-2 control-label">下属员工</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="wxuserPersonal.idPersonal" placeholder="下属员工"/>
			    </div>
			</div>
											<div class="form-group">
			   	<div class="col-sm-2 control-label">班主</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="wxuserPersonal.idWeixinUser" placeholder="班主"/>
			    </div>
			</div>
									<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
		<div id="form3" style="display:none;">
			<select id="group" class="form-control col-sm-2" onchange="show_sub_person(this.options[this.options.selectedIndex].value)">


			</select>

			<input type="text" id="name" class="form-control col-sm-2"  placeholder="请输入人员名称"/>

			<div class="grid-btn">
				&nbsp<input type="button" onclick="getval();" class="btn btn-default" value="查询" />
				<a class="btn btn-primary" onclick="checkAll('person_checkbox')">&nbsp;全选</a>


				<a class="btn btn-primary" onclick="checkNotAll('person_checkbox')">&nbsp;全反选</a>


				<a class="btn btn-primary" onclick="addSome()">&nbsp;添加</a>

			</div>

			<div class="row" id="person">

			</div><!-- /.row -->
			<div class="row">
				<input type="button" class="btn btn-warning center-block" @click="javascript:history.go(0);" value="返回"/></div>
		</div>
</div>

<script src="${rc.contextPath}/js/dingwei/wxuserpersonal.js?_${date.systemTime}"></script>
</body>
</html>